package com.orange.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.orange.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.orange.eduservice.entity.vo.CourseInfoForm;
import com.orange.eduservice.entity.vo.CoursePublishVo;
import com.orange.eduservice.entity.vo.CourseQuery;
import com.orange.eduservice.entity.vo.front.CourseFrontVo;
import com.orange.eduservice.entity.vo.front.CourseWebVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author orange
 * @since 2021-12-17
 */
//调用方法实现多条件分页查询
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseInfoForm courseInfoForm);
    //根据课程id查询课程基本信息
    CourseInfoForm getCourseInfo(String courseId);
    //修改课程信息
    void updateCourseInfo(CourseInfoForm courseInfoForm);
    //根据课程id查询课程确认信息
    CoursePublishVo getPublishCourseInfo(String courseId);
    //多条件查询课程带分页
    void pageQuery(Page<EduCourse> pageParam, CourseQuery courseQuery);
    //课程列表中删除课程方法
    boolean removeCourse(String id);
    //调用查询前8热门课程的方法
    List<EduCourse> selectHotCourse();
    //前台多条件分页查询
    Map<String, Object> getCourseFrontInfo(Page<EduCourse> pageCourse, CourseFrontVo courseFrontVo);
    //前台根据课程id，查询课程基础信息
    CourseWebVo getBaseCourseInfo(String courseId);
}
